package com.example.administrator.acmapp.Fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.example.administrator.acmapp.Adapter.QuestionFragmentListViewAdapter;
import com.example.administrator.acmapp.R;

/**
 * Created by Administrator on 2018/2/1/001.
 */

public class TalkFragment extends android.support.v4.app.Fragment  {
    ListView mQuestionlistview;
    private View view;

    public TalkFragment() {

    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.talk_fragment_layout, container, false);
        mQuestionlistview = view.findViewById(R.id.question_fragment_listview);
        mQuestionlistview.setAdapter( new QuestionFragmentListViewAdapter(getActivity()));
        return view;
    }

}
